﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyPosts.aspx.cs" Inherits="ExpertMIS.Workships.MyPosts" %>

<%@ Register Src="../Forums/UserControl/ucSearchResult.ascx" TagName="ucSearchResult"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的问题</title>
    <link type="text/css" rel="Stylesheet" href="../CSS/workship.css" />
    <style type="text/css">
        .tab-questions
        {
            border-left: 1px #1f8bd4 solid;
            font-size: 14px;
        }
        .tab-questions td
        {
            border-top: 1px #1f8bd4 solid;
            border-right: 1px #1f8bd4 solid;
            height: 28px;
        }
        .td-choosed
        {
            width: 98px;
            text-align: center;
            background-color: #208cd4;
            padding: 1px;
            color: White;
            font-weight: bold;
            cursor: default;
        }
        .td-unchoosed
        {
            width: 98px;
            text-align: center;
            background-color: White;
            color: #1c7fc0;
            font-weight: bold;
            cursor: pointer;
        }
    </style>

    <script type="text/javascript" src="../js/jquery-1.3.2.js"></script>

    <script type="text/javascript">
        function doSwitch(obj, filter) {
            var url = "MyPostFrame.aspx?filter=" + filter;
            $("#divQuestions").fadeOut(200);
            $('.td-choosed').attr('class', 'td-unchoosed');
            $(obj).attr('class', 'td-choosed');
            $('#frameQuestions').attr('src', url);
        }
    </script>

</head>
<body>
    <div style="height: 30px; background-color: #eaf4fd; padding-left: 20px; line-height: 30px;
        vertical-align: middle; text-align: left; padding-left: 20px">
        <asp:Label runat="server" ID="Label1" Font-Bold="True" Font-Names="宋体" Font-Size="12pt"
            Font-Strikeout="False" Font-Underline="False" ForeColor="#2092db">我的问题</asp:Label>
    </div>
    <div class="column" style="text-align: left;">
        <table class="tab-questions" cellpadding="0" cellspacing="0">
            <tr>
                <td class="td-choosed" onclick="doSwitch(this,'all');">
                    全部问题
                </td>
                <td class="td-unchoosed" onclick="doSwitch(this,'unsolved');">
                    未处理问题
                </td>
                <td class="td-unchoosed" onclick="doSwitch(this,'resolved');">
                    已处理问题
                </td>
                <% if ((CurrentUser as ExpertMIS.Entities.ADMUserEntity).IsExpert == true)
                   {%>
                <td class="td-unchoosed" onclick="doSwitch(this,'faq');">
                    常见问题
                </td>
                <% }%>
                <td class="td-unchoosed" onclick="doSwitch(this,'received');">
                    收到的问题
                </td>
            </tr>
        </table>
    </div>
    <div id="divQuestions" class="column" style="width: 712px; height: 620px; text-align: center;">
        <iframe id="frameQuestions" name="frameQuestions" frameborder="0" style="margin: 0;
            padding: 0; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;"
            src="MyPostFrame.aspx?filter=all" onload='$("#divQuestions").fadeIn(200);'></iframe>
    </div>
</body>
</html>
